﻿<%@ Page Title="Opret Salg" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="saleCreate.aspx.cs" Inherits="UCNKompetenceBors.Exchange.saleCreate" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="saleCreateContent" class="contentBoxLarge floatLeft">

        <div class="purchaseSaleCreateBox floatLeft">
            <div class="inputFormLarge floatLeft">
                <asp:Panel ID="panCreateSaleForm" runat="server">
                    <div class="inputFormLargeLeft floatLeft">
                        <div class="inputFormLargeRow contentTitle">
                            <asp:Label ID="lblCreateSaleHeader" runat="server" Text="Opret et salg"></asp:Label>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormLargeCellLeft floatLeft">
                                <asp:Label ID="lblCreateSaleCategory" runat="server" Text="Kategori:"></asp:Label>
                            </div>
                            <div class="inputFormLargeCellRight floatRight">
                                <asp:DropDownList ID="ddlCreateSaleCategory" runat="server"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvalCreateSaleCategory" runat="server" ValidationGroup="CreateSale" InitialValue="Vælg Kategori" ErrorMessage="Kategori skal vælges" ToolTip="Kategori skal vælges" ControlToValidate="ddlCreateSaleCategory" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormLargeCellLeft floatLeft">
                                <asp:Label ID="lblCreateSaleTitle" runat="server" Text="Titel:"></asp:Label>
                            </div>
                            <div class="inputFormLargeCellRight floatRight">
                                <asp:TextBox ID="txtCreateSaleTitle" runat="server" Width="450px" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvalCreateSaleTitle" runat="server" ValidationGroup="CreateSale" ErrorMessage="Titel skal udfyldes" ToolTip="Titel skal udfyldes" ControlToValidate="txtCreateSaleTitle" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="floatLeft">
                                <asp:Label ID="lblCreateSaleDescription" runat="server" Text="Beskrivelse:"></asp:Label>
                                <br />
                                <br />
                                <CKEditor:CKEditorControl ID="ckeditorCreateSaleDescription" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
                            </div>
                            <div class="inputFormEditorValidation floatRight">
                                <asp:RequiredFieldValidator ID="rfvalCreateSaleDescription" runat="server" ValidationGroup="CreateSale" ErrorMessage="Beskrivelse skal udfyldes" ToolTip="Beskrivelse skal udfyldes" ControlToValidate="ckeditorCreateSaleDescription" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormButtonMargin floatRight">
                                <asp:Button ID="btnCreateSale" runat="server" Text="Opret salg" ValidationGroup="CreateSale" CssClass="button" OnClick="btnCreateSale_Click" />
                            </div>
                        </div>
                    </div>

                    <div class="inputFormLargeRight floatRight">
                        <asp:ValidationSummary ID="valsumCreateSale" runat="server" ForeColor="Red" HeaderText="The following errors were detected:" ValidationGroup="CreateSale" />
                    </div>
                </asp:Panel>

                <asp:Label ID="lblCreateSaleSuccess" runat="server" Text="Du har nu oprettet et salg."></asp:Label>
            </div>
        </div>
    </div>
</asp:Content>
